package cn.tedu.medicalappointmentsystemk.dao.persist.repository.impl;

import cn.tedu.medicalappointmentsystemk.dao.persist.mapper.UserRoleMapper;
import cn.tedu.medicalappointmentsystemk.dao.persist.repository.UserRoleRepository;
import cn.tedu.medicalappointmentsystemk.pojo.po.UserRolePO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Slf4j
@Repository
public class UserRoleRepositoryImpl implements UserRoleRepository {
    @Autowired
    private UserRoleMapper userRoleMapper;

    @Override
    public Integer insert(UserRolePO userRole) {
        log.debug("开始执行【批量插入用户与角色的关联数据】的数据访问，参数：{}", userRole);
        return userRoleMapper.insert(userRole);
    }
}
